package com.mf.mapper.basic;

import com.mf.entity.dto.basic.DtoRolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mf.entity.req.basic.reqPublic.ReqRelevanceDetailById;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 权限角色关联
 *
 */
@Mapper
public interface MapperRolePermission extends BaseMapper<DtoRolePermission> {
    /**
     * 根据角色id绑定权限
     */
    void savePremByRoleId(@Param("params") ReqRelevanceDetailById reqRelevanceDetailById,Integer userId);

    /**
     * 根据角色id删除绑定权限
     */
    void delPremByRoleId(@Param("params") ReqRelevanceDetailById reqRelevanceDetailById);
    /**
     * 根据角色Id集合查询权限
     */
    List<String> listByRoleId(List<Integer> roleIds);
}
